package com.tensquare.qa.client;

import entity.Result;
import entity.StatusCode;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: tensquare_parent
 * @BelongsPackage: com.tensquare.qa.client
 * @Author: yang
 * @CreateTime: 2019-03-14 09:46
 * @Description: ${Description}
 */

/**
 * 写个实现类  当base 服务宕机时 自动去实现client 的findById方法
 */
@Component
public class BaseClientImpl implements BaseCilent {
    @Override
    public Result findById(String labelId) {
        return new Result(true, StatusCode.OK,"熔断器触发了");
    }
}
